package com.neutech.neureg.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neutech.neureg.mapper.UserMapper;
import com.neutech.neureg.service.UserService;
import com.neutech.po.RegistLevelUser;
import com.neutech.vo.RegistLevelVo;
@Service
public class UserServiceImpl implements UserService{ 
	@Autowired
	private UserMapper userMapper;
	@Autowired
	private UserMapper registLevelMapper;
	/*
	 * 增加用户
	 * @param;用户对象
	 * @return:添加成功==1，添加失败==0
	 */
	@Override
	public int addUser(Map<String,List> reguser) {
		int num = userMapper.addUser(reguser);
		return 0;
	}
	/*
	 * 单纯查询挂号级别
	 */
	@Override
	public Map<String,List> selectRegistLevel(){
		List<RegistLevelUser> rlList = registLevelMapper.queryAll();
		Map<String,List> vo = new HashMap<>();
		vo.put("registLevel",rlList);
		return vo;
	}
	
	
	/*
	 * 添加用户界面出现前，要查询信息，填充下拉菜单
	 * 号别编码、号别名称、显示顺序号、挂号费、挂号限额
	 * @return:添加成功==1，添加失败==0
	 */
//	@Override
//	public List<RegistCodeMapper> toAddUser() {
//		List<RegistCodeMapper> rcList = registCodeMapper.queryAll();
//		return rcList;
//	}
//	@Override
//	public List<RegistName> toAddUser() {
//		List<RegistName> rnList = registNameMapper.queryAll();
//		return rnList;
//	}
//	@Override
//	public List<SequenceNo> toAddUser() {
//		List<SequenceNo> snList = sequenceNoMapper.queryAll();
//		return snList;
//	}
//	@Override
//	public List<RegistFee> toAddUser() {
//		List<RegistFee> rfList = registFeeMapper.queryAll();
//		return rfList;
//	}
//	@Override
//	public List<RegistQuota> toAddUser() {
//		List<RegistQuota> rqList = registQuotaMapper.queryAll();
//		return rqList;
//	}
}

//查询见录屏neihis的后端查询


